#include "ESF_Student_t.h"
#include <iostream>
using namespace std;
ESF_Student_t::ESF_Student_t(const std::string &name, const std::string &faculty):StudentImp(name,faculty),year(1){}

ESF_Student_t::~ESF_Student_t(){}

ESF_Student_t::ESF_Student_t(const ESF_Student_t &other):StudentImp(other){
	this->year = other.year;
}

void ESF_Student_t::Update(Subject *subject, EVENT e){
	if(subject == this->sbj){		
		cout << this->studentName.c_str() << " was updated" << endl;
		if(e == EVENT_ALL) 
				cout << " general message" << endl;
		if(e == EVENT_ESF)
				cout << " ESF faculty message" << endl;
	}
}